package net.scala.chapter3.p

/**
 * 这个为包测试类，用于测试包对象
 * @author Barudisshu
 */
class PackageTest private(val count:Array[Int]) {
  def inline = count.sum
  val age = minimumAge
  def serveDrinks = verifyAge
}

//让其是伴生的-----------------

object PackageTest{

  def apply(array:Array[Int]) = new PackageTest(array)
}
